/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ds_Stack;

/**
 *
 * @author hcc25_000
 */
public class Stack_Test {
    public static void main(String[] args){
       /* MyArrayStack<Object> a = new MyArrayStack<Object>();
        a.push(1.5);
        a.push(2);
        a.push(1);
        System.out.println();
        a.showInfo();*/
        //System.out.println("---------"+a.peek());
        //a.pop();a.pop();a.pop();
        //a.showInfo();
        MyArrayStack<Integer> b=new MyArrayStack<Integer>();
        Integer m=new Integer(7);
        Integer n=new Integer(3);
        b.push(1);
        b.push(n);
        b.push(m);
        //System.out.println(m.toString());
        b.pop();b.pop();
        System.out.println(""+b.peek());
        b.showInfo();
        /*MyArrayStack<Double> c=new MyArrayStack<Double>();
        c.push(1.0);
        c.push(2.1);
        c.push(3.9);
        c.showInfo();*/
       /*MyArrayStack<String> d=new MyArrayStack<String>();
        d.push("s");d.push("ss");d.push("sss");
        System.out.println("s".toString());
        d.showInfo();*/
    }
}
